Skip to content

GH Issue 1800: Single-quote values in SAS export scripts - #8366

Open
labkey-adam wants to merge 1 commit into
developfrom
fb_sas_macro_quoting_1800
Open

labkey-adam wants to merge 1 commit into
developfrom
fb_sas_macro_quoting_1800

Conversation

@labkey-adam

@labkey-adam labkey-adam commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

This PR makes Export > Script > SAS write single-quoted values so SAS can't resolve & and % in them, as part of the GH Issue 1800 fix. Exported values come from the request URL, so a crafted export link could otherwise produce a SAS script that runs injected macro code. Embedded quotes were also escaped with backslashes, which SAS doesn't recognize, so a quote in a value ended the string early.

Related Pull Requests

Changes

  • SAS export scripts quote values with single quotes and escape embedded quotes by doubling them
  • Operator names stay double-quoted so exported scripts still work with labkey-api-sas 1.0.x

Keeps SAS from resolving & and % in exported values; operator names stay double-quoted for labkey-api-sas 1.0.x.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant